import { StrictMode } from "react";
import { createRoot } from "react-dom/client";
import App from "./App.tsx";
import ReactDemo from "./React.tsx";
import EmptyPage from "./404.tsx";
import "./components/Message/index.tsx";
import BaseRouter from "./router/index copy.tsx";
import router from "./router/index.tsx";
import {
  BrowserRouter,
  Routes,
  Route,
  Navigate,
  HashRouter,
  RouterProvider,
} from "react-router-dom";
createRoot(document.getElementById("root")!).render(
//   <HashRouter>
//     {/* <App /> */}
//     {/* <Routes>
//       <Route path="/" element={<App />} />
//       <Route path="/react" element={<ReactDemo />} />
//       <Route path="*" element={<EmptyPage />} />
//     </Routes> */}
//     <BaseRouter />
//   </HashRouter>

//2
<RouterProvider router={router} />
);
